<?xml version="1.0"?>
<recipe>
  <#if appCompat && !(hasDependency('com.android.support:appcompat-v7'))>
      <dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+" />
   </#if>

   <#if (buildApi gte 22) && appCompat && !(hasDependency('com.android.support:design'))>
       <dependency mavenUrl="com.android.support:design:${buildApi}.+" />
   </#if>

    <#include "../common/recipe_theme.xml.ftl" />

    <merge from="root/AndroidManifest.xml.ftl"
             to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />

    <merge from="root/res/values/styles.xml"
             to="${escapeXmlAttribute(resOut)}/values/styles.xml" />
    <merge from="root/res/values/strings.xml.ftl"
             to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
    <merge from="root/res/values/colors.xml"
             to="${escapeXmlAttribute(resOut)}/values/colors.xml" />

    <copy from="root/res/drawable-xxhdpi/loco_login_logo.png"
              to="${escapeXmlAttribute(resOut)}/drawable-xxhdpi/loco_login_logo.png" />

    <copy from="root/res/drawable-xxhdpi/loco_login_pass.png"
              to="${escapeXmlAttribute(resOut)}/drawable-xxhdpi/loco_login_pass.png" />
    <copy from="root/res/drawable-xxhdpi/loco_login_username.png"
              to="${escapeXmlAttribute(resOut)}/drawable-xxhdpi/loco_login_username.png" />

    <instantiate from="root/res/layout/activity_login.xml"
              to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />

    <instantiate from="root/src/app_package/LoginActivity.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
    <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />
</recipe>
